home *** CD-ROM | disk | FTP | other *** search
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a )
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
- pshader("
-
- ;#include <consts.psh>
- ps_1_1
-
- ;def c5, DAYCOLOR
- ;def c7, AMBIENT
-
-
- tex t0 ;texture
- tex t1 ;Clouds
-
-
- mul r1, v0, 1-t1.a ;lightmapa * chmury
-
- mad_sat r1, r1, c7, c7.a ;skalowanie oswietlenia (dodanie ambientu)
-
- mul r1, r1, c5 ;wymnozenie oswietlenia przez kolor pory dnia/swiatla
-
- mul r0.rgb, r1, t0 ;mnozy teksture przez zmodyfikowana lightmape
- +mul r0.a, t0.a, v0.a ;mnozy alphe diffusa z alpha textury (fade)
-
- ")
-
-